<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pea tips</title>
<link type="text/css" rel="stylesheet" href="/networkforum/css/search_main.css" />
<script type="text/javascript">
window.onload = function(){
	loadInfo("-");
}
var listOption {
	'content':{
		'param':{'id':"liTitle"},
		'bind':{'targetId':""}
	}
	'publishTime':{
		'param':{'id':"liTime"},
	}
}
function loadInfo(init){
	var value = init||document.getElementById("searchValue").value;
	if(value == ""){
		return;
	}
	//登录页面后通过myajax获取进一步的信息
	var myajax = getByAjax();
	myajax.init(null,"get",true);
	myajax.get("/networkforum/search/search_list.do?keyWords="+encodeURIComponent(value),callBack);
	myajax = null;
}
function callBack(d){
	//var data = eval("("+d+")");
	var data = toJson(d);
	page.view("ulInner",data,listOption)
}
</script>
</head>

<body>
<iframe id="tnav" class="tnav" src="/networkforum/pages/user/user_header.html"></iframe>
<section class="searchMain">
	<header class="sNav">
		<section class="tipPea">
			<span>Tip pea社区</span>
		</section>
		<section class="searchInput">
			<input id="searchValue" type="text" /><span onclick="loadInfo();">search</span>
		</section>
	</header>
	<section class="sleft">
		<section class="dongtai mcrItem">
			<header>热门用户</header>
			<ul id="hotUserInner">
				<li>
					<img id="userPhoto" src="/networkforum/images/left1.jpg"/>
					<label id="userName">xunxun</label>
				</li>
				<li>
					<img id="userPhoto" src="/networkforum/images/left1.jpg"/>
					<label id="userName">qxxxx</label>
				</li>
			</ul>
		</section>
		<section class="boke mcrItem">
			<header>热门博客</header>
			<ul id="hotArticleInner">
				<li>
					<span id="hauserName">xunxun</span>
					<span id="hacontent">java and javascriptddddd</span>
				</li>
				<li>
					<span id="hauserName">xunxun</span>
					<span id="hacontent">java and javascriptddddd</span>
				</li>
			</ul>
		</section>
		<section class="fish mcrItem">
			<header>新加入的用户</header>
			<ul id="fishInner" class="fishInner">
				<li style="display:none;">
					<img id="userPhoto" src="/networkforum/images/left1.jpg"/>
					<span id="userNameli">xuxun</span>
					<span id="userSex">nan</span>
				</li>
				<li id="fishUHeader">
					<span id="userPhoto">头像</span>
					<span id="userNameli">用户名</span>
					<span id="userSex">性别</span>
				</li>
				<li>
					<img id="userPhoto" src="/networkforum/images/left1.jpg"/>
					<span id="userNameli">xuxun</span>
					<span id="userSex">nan</span>
				</li>
			</ul>
		</section>
	</section>
	<section class="sright">
		<h2>信息展示</h2>
		<ul class="ulInner" id="ulInner">
			<li style="display:none;">
				<span id="liTitle"></span>
				<span id="liTime"></span>
			</li>
			<li id="liHeader">
				<span id="liTitle">内容</span>
				<span id="liTime">时间</span>
			</li>
			<li>
				<span id="liTitle">Java and Javascript</span>
				<span id="liTime">2013-12-12 12:12:12</span>
			</li>
		</ul>
	</section>
</section>
<iframe class="footer" src="/networkforum/pages/footer.html"></iframe>
</body>
<script type="text/javascript" src="/networkforum/js/view.js"></script>
</html>
